package Package.MethodReference.MethodReference_1;

public class MethodReference {
    public static final void MethodReference() {
        usePrintable(S -> System.out.println("ChangCun"));
        usePrintable(System.out::println);
    }

    private static void usePrintable(Printable p) {
        p.printString("爱生活爱Java");
    }

}
